package miniproj.exception;

/**
 * This class is a personalized Exception concerning date format problems
 * 
 * @author Baptiste Viale
 * 
 */
@SuppressWarnings("serial")
public class IncorrectDateFormatException extends Exception {

	/**
	 * Instantiates a new incorrect date format exception.
	 * 
	 * @param year
	 *            the year
	 * @param month
	 *            the month
	 * @param day
	 *            the day
	 */
	public IncorrectDateFormatException(int year, int month, int day) {
		super("IncorrectDateFormatException : Incorrect format for the date "
				+ year + "/" + month + "/" + day);
	}

	/**
	 * Instantiates a new incorrect date format exception.
	 * 
	 * @param message
	 *            the message of the exception
	 */
	public IncorrectDateFormatException(String message) {
		super("IncorrectDateFormatException : " + message);
	}
}
